package org.zk.service;

import org.zk.entity.User;

public interface UserService {

    /**
     * 用户注册
     */
    public int registUser(User user);

    /**
     * 用户登录
     * @param phone
     * @param password
     * @return
     */
    public User login(String phone, String password);

    /**
     * 根据手机号获得用户
     * @param phone
     * @return
     */
    public User getUserByPhone(String phone);

    /**
     * 根据用户id修改用户名或者qq
     * @param uid
     * @param username
     * @param qq
     * @return
     */
    public Integer chageUserInfo(Integer uid, String username, String qq);


    /**
     * 根据用户id获取用户
     * @param uid
     * @return
     */
    public User getUserByUid(Integer uid);



}
